# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#ifeq ($(strip $(BUILD_WITH_GST)),true)

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LAME_LIBMP3_DIR := libmp3lame/src

LOCAL_SRC_FILES:= \
	version.c \
	fixed.c \
	bit.c \
	timer.c \
	stream.c \
	frame.c  \
	synth.c \
	decoder.c \
	layer12.c \
	layer3.c \
	huffman.c \
	MyMinimad.c \
	NativeMP3Decoder.cpp \
	native_libmad.cpp \
	FileSystem.cpp \
	mixrecord.c \
	mp3decode.c \
	$(LAME_LIBMP3_DIR)/bitstream.c \
	$(LAME_LIBMP3_DIR)/fft.c \
	$(LAME_LIBMP3_DIR)/id3tag.c \
	$(LAME_LIBMP3_DIR)/mpglib_interface.c \
	$(LAME_LIBMP3_DIR)/presets.c \
	$(LAME_LIBMP3_DIR)/quantize.c \
	$(LAME_LIBMP3_DIR)/reservoir.c \
	$(LAME_LIBMP3_DIR)/tables.c \
	$(LAME_LIBMP3_DIR)/util.c \
	$(LAME_LIBMP3_DIR)/VbrTag.c \
	$(LAME_LIBMP3_DIR)/encoder.c \
	$(LAME_LIBMP3_DIR)/gain_analysis.c \
	$(LAME_LIBMP3_DIR)/lame.c \
	$(LAME_LIBMP3_DIR)/newmdct.c \
	$(LAME_LIBMP3_DIR)/psymodel.c \
	$(LAME_LIBMP3_DIR)/quantize_pvt.c \
	$(LAME_LIBMP3_DIR)/set_get.c \
	$(LAME_LIBMP3_DIR)/takehiro.c \
	$(LAME_LIBMP3_DIR)/vbrquantize.c \
	$(LAME_LIBMP3_DIR)/version.c \
	$(LAME_LIBMP3_DIR)/com_qd_videorecorder_util_SimpleLame.c \
	cn_com_util_Jni.cpp

LOCAL_ARM_MODE := arm  
  
LOCAL_MODULE:= libmad  
  
LOCAL_C_INCLUDES := \
    $(LOCAL_PATH)/android   
  
LOCAL_CFLAGS := -DHAVE_CONFIG_H -DFPM_ARM -ffast-math -O3  

LOCAL_LDLIBS := -llog

include $(BUILD_SHARED_LIBRARY) 

APP_ABI := armeabi

#endif
